/**
 * Created by dinstar on 2018/4/20.
 */
Ext.define('CMS.views.main.totalBill.billBarChart', {
    extend:'Ext.chart.CartesianChart',



    requires:[
       // 'CMS.store.totalBill.Population',
        'CMS.store.totalBill.totalBill'
        /*'Ext.chart.axis.Category',
        'Ext.chart.series.Bar3D',
        'Ext.chart.axis.Numeric',
        'Ext.chart.interactions.ItemHighlight'*/
    ],
    xtype:'bill-BarChart',
    height:500,
    padding:{
        top:50,
        bottom: 20,
        left: 100,
        right: 100
    },
    //图例
    //legend:

    insetPadding:{
        top: 100,
        bottom: 20,
        left: 20,
        right: 40
    },
    store: {
        type: 'totalBillStore'
    },
    axes:[{
        type:'numeric',
        position:'left',
        grid:true,
        title:{
            text:'Y轴',
            fontSize:16
        }
    },{
        type:'category',
        title:{
            text:'X轴',
            fontSize:16
        },
        position:'bottom'
    }],
    series:[
        {
            type:'area',
            xField:'consumptionTime',
            yField:['amountPrice']
        }
    ],
    sprites:{
        type:'text',
        text:'Population-This is title',
        font:'25px Helvetica',
        width:100,
        height : 35,
        x : 100,
        y : 40
    }

});